/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.butnet.myframe.servlet;

import net.sf.json.JSONObject;

/**
 * 上传信息
 * @author Administrator
 */
class UploadInfo {
    /**
     * 上传状态的sessionId
     */
    private String uploadId = null;
    /**
     * JSON信息
     */
    private JSONObject json = new JSONObject();
    /**
     * 是否停止
     */
    private Boolean stop = null;
    /**
     * 在取得100%信息后,删除此对象
     */
    private boolean removeAfterGet = false;

    public UploadInfo(String uploadId) {
        this.uploadId = uploadId;
        json = new JSONObject();
    }

    public String getUploadId() {
        return uploadId;
    }

    public JSONObject getJson() {
        return json;
    }

    /**
     * 如果返回null 表示还没开始传输
     * 如果为false  表示正在开始传输
     * 如果为true   表示停止
     **/
    public Boolean getStop() {
        return stop;
    }
    /**
     * 设置停止上传状态
     * @param stop
     */
    public void setStop(Boolean stop) {
        this.stop = stop;
    }
    /**
     是否需要在输出信息后,删除此对象
     */
    public boolean isRemoveAfterGet() {
        return removeAfterGet;
    }

    public void setRemoveAfterGet(boolean removeAfterGet) {
        this.removeAfterGet = removeAfterGet;
    }
    
}